package com.czx.task.controller;


import com.czx.core.web.domain.R;
import com.czx.task.domain.dto.TaskDTO;
import com.czx.task.domain.entity.Task;
import com.czx.task.domain.vo.TaskVO;
import com.czx.task.service.TaskService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/task")
public class TaskController {

    @Resource
    private TaskService taskService;

    @GetMapping("/get")
    public R<Task> getTaskById(long  id){

       return R.ok(taskService.getById(id));
    }
}
